<!-- body -->
    <div id="hover-tip"></div>
    <div class="container nav-margin-top" style="background:#fff">
        <ol class="breadcrumb">
            <li><a href="/nsbbs/">首页</a></li>
            <li><a href="zone.php">版面目录</a></li>
            <li><a href="list.php?zid=<?php echo $isExist[0]['zid']?>"><?php echo htmlspecialchars($isExist[0]['zname'])?></a></li>
            <input type="hidden" id="mid" value="<?php echo $isExist[0]['id']?>">
        </ol>
        <div class="ns-page-header">
            <div class="row">
                <div class="col-sm-6">
                    <h1><?php echo htmlspecialchars($isExist[0]['name'])?></h1>
                </div>
                <div class="col-sm-6">
                    <div class="module-collection">
                    <?php if($user_data){ ?>
                        <b class="collect-btn hand<?php echo $collect?>" id="<?php echo $isExist[0]['id']?>"></b>
                    <?php } ?>
                        <em>收藏本版(<i id="coll-num"><?php echo $isExist[0]['collect_num']?></i>)</em>
                    </div>
                </div>
            </div>
            <div class="module-info">
                <span><em>今日：</em><i><?php echo $today_cnt?></i></span>
                <span><em>主题：</em><i><?php echo $main_cnt?></i></span>
                <span><em>帖数：</em><i><?php echo $all_cnt?></i></span>
            </div>
            <div class="module-description">
                <em><?php echo htmlspecialchars($isExist[0]['description'])?></em>
            </div>
            <div class="module-manager">
                <em>版务：</em>
                <ul>
            <?php if(!$manager_info){ ?>
                    <li>暂无版务</li>
            <?php }else{
                    foreach($manager_info as $manager_item){
            ?>
                    <li>
                    <a href="userinfo.php?uid=<?php echo $manager_item['id']?>"><?php echo htmlspecialchars($manager_item['user'])?></a>
                    </li>
            <?php }
                } ?>
                </ul>
            </div>
        </div>
        <div class="ns-label-page">
            <ul id="nav-tab-bar" class="clearfix">
                <li class="l nav-tab-active">帖子</li>
                <li class="l">史诗帖</li>
                <li class="l">公告栏</li>
            </ul>
            <div class="tab-content">
                <div class="cont-bar clearfix">
                    <div class="all hand current">全部</div>
                    <div class="today hand">今日</div>
                    <div class="browse-more hand">By 浏览</div>
                </div>
                <div class="cont-wrap">
                  
            
                </div>
              
            </div>
        </div>
        <!-- 发帖 -->
<?php if($user_data){ ?>
        <form action="" method="POST">
<?php if($isExist[0]['name']=='故障报修'){?>
        <div class="send">
            <div class="send-label">快捷报修</div>
            <div class="sb-type clearfix" style="line-height:28px">
                <label class="l send-title-label">报修类型</label>
                <input type="radio" id="sushe" name="type" value="宿舍" checked/><label for="sushe" style="margin-right:10px">宿舍</label>
                <input type="radio" id="jiaoshi" name="type" value="教室" /><label for="jiaoshi">教室</label>
            </div>
            <div class="clearfix" style="margin-bottom:10px">
                <label for="sender" class="l send-title-label">申报人</label>
                <input type="text" style="width:120px;height:30px" name="name" ns-data="true" id="sender" class="form-control l send-title-input" placeholder="填写你的名字">
            </div>
            <div class="clearfix" style="margin-bottom:10px">
                <label for="sendertell" class="l send-title-label">联系电话</label>
                <input type="text" style="width:150px;height:30px" name="phone"  ns-data="true" id="sendertell" class="form-control l send-title-input" placeholder="填写你的联系电话">
            </div>
            <div class="clearfix">
                <label for="sendtitle" class="l send-title-label">地址</label>
                <input type="text" name="title" ns-data="true" id="sendtitle" class="form-control input-sm l send-title-input" placeholder="填写地址，例如男生宿舍4号楼4N507">
            </div>
            <div class="clearfix">
                <label for="didian" class="l send-title-label">图片</label>
                <div class="glfj-out">
                    <span class="send-tool" style="background:transparent">
                        <label class="send-tool-img hand" for="img"></label>
                        <input type="file" id="img" class="hide">
                    </span>
                    <span id="glfj">管理图片(<b>0</b>)</span>
                </div>
                <ul id="upload-zone" class="clearfix">
                    <span id="x" class="hand">x</span>
                    <li><span class="file-name icolor">文件名</span><span class="file-action">操作</span></li>
                </ul>
            </div>
            <div class="clearfix">
                <label for="sendcontent" class="l send-title-label">描述</label>
                <textarea onkeydown="tab(this)" ns-data="true" name="body" id="sendcontent" class="form-control send-text-input" placeholder="描述故障详情..." rows="12"></textarea>
            </div>
            <div class="send-main clearfix">
                <button class="hand r" name="submit" value="baoxiu" id="send-btn">报修</button>
            </div>
        </div>
<?php }elseif($isExist[0]['name']=='活动申报'){?>
         <div class="send">
            <div class="send-label">快捷申报</div>
            <div class="clearfix" style="margin-bottom:10px">
                <label for="huodong" class="l send-title-label">活动名称</label>
                <input type="text" style="width:170px;height:30px" name="name1" ns-data="true" id="huodong" class="form-control l send-title-input" placeholder="申请的活动名称">
            </div>
            <div class="sb-type clearfix" style="line-height:28px">
                <label class="l send-title-label">申报单位</label>
                <input type="radio" id="sushe" name="type" value="个人" checked/><label for="sushe" style="margin-right:10px">个人</label>
                <input type="radio" id="jiaoshi" name="type" value="集体" /><label for="jiaoshi">集体</label>
            </div>
            <div class="clearfix" style="margin-bottom:10px">
                <label for="sender" class="l send-title-label">单位名称</label>
                <input type="text" style="width:150px;height:30px" name="name2" ns-data="true" id="sender" class="form-control l send-title-input" placeholder="本人姓名/集体名称">
            </div>
            <div class="clearfix" style="margin-bottom:10px">
                <label for="sendertell" class="l send-title-label">负责人电话</label>
                <input type="text" style="width:150px;height:30px" name="phone"  ns-data="true" id="sendertell" class="form-control l send-title-input" placeholder="活动负责人电话">
            </div>
            <div class="clearfix" style="margin-bottom:10px">
                <label class="l send-title-label">时</label>
                <span class="l" style="margin-top:4px">Start：</span><input type="text" style="width:160px;height:30px" name="start"  ns-data="true" id="time_s" class="form-control l send-title-input" placeholder="例2020/9/1 早上10点">
            </div>
            <div class="clearfix" style="margin-bottom:10px">
                <label class="l send-title-label">间</label>
                <span class="l" style="margin:4px 0 0 5px">End：</span><input type="text" style="width:160px;height:30px" name="end"  ns-data="true" id="time_e" class="form-control l send-title-input" placeholder="例2020/9/1 下午5点">
            </div>
            <div class="clearfix">
                <label for="sendtitle" class="l send-title-label">申请活动场地</label>
                <input type="text" name="title" ns-data="true" id="sendtitle" class="form-control input-sm l send-title-input" placeholder="填写地址，例如男生宿舍4号楼4N507">
            </div>
            <div class="clearfix" style="margin-top:10px">
                <label for="didian" class="l send-title-label">图片</label>
                <div class="glfj-out">
                    <span class="send-tool" style="background:transparent">
                        <label class="send-tool-img hand" for="img"></label>
                        <input type="file" id="img" class="hide">
                    </span>
                    <span id="glfj">管理图片(<b>0</b>)</span>
                </div>
                <ul id="upload-zone" class="clearfix">
                    <span id="x" class="hand">x</span>
                    <li><span class="file-name icolor">文件名</span><span class="file-action">操作</span></li>
                </ul>
            </div>
            <div class="clearfix">
                <label for="sendcontent" class="l send-title-label">正文</label>
                <textarea onkeydown="tab(this)" ns-data="true" name="body" id="sendcontent" class="form-control send-text-input" placeholder="描述申请的活动内容或申请内容..." rows="12"></textarea>
            </div>
            <div class="send-main clearfix">
                <button class="hand r" name="submit" value="shenbao" id="send-btn">申报</button>
            </div>
        </div>
        
<?php }else{ ?>
        <div class="send">
            <div class="send-label">快捷发帖</div>
            <div class="send-title clearfix">
                <label for="sendtitle" class="l send-title-label">标题</label>
                <input type="text" name="title" ns-data="true" id="sendtitle" class="form-control input-sm l send-title-input" placeholder="标题不超过50个字符">
            </div>
            <div class="send-main clearfix">
                <div class="send-tool">
                    <div class="bq-zone">
            <?php foreach($bq_arr as $key => $val){?>
                    <a href="javascript:addsmile('[<?php echo $key?>]');"><img src="<?php echo $val?>"></a>
            <?php } ?>
                    </div>
                    <label class="send-tool-emoji hand" id="emoji" title="表情"></label>
                    <label class="send-tool-img hand" for="img" title="添加图片"></label>
                    <input type="file" id="img" class="hide">
                </div>
                <div class="glfj-out"><span id="glfj">管理图片(<b>0</b>)</span></div>
                <ul id="upload-zone" class="clearfix">
                    <span id="x" class="hand">x</span>
                    <li><span class="file-name icolor">文件名</span><span class="file-action">操作</span></li>
                </ul>
                <textarea onkeydown="tab(this)" ns-data="true" name="body" id="sendcontent" class="form-control send-text-input" placeholder="发布的内容..." rows="12"></textarea>
                <button class="hand r" name="submit" id="send-btn">发布</button>
            </div>
        </div>
<?php } ?>
        </form>
    <?php }else{ ?>
        <div class="login2send">
            <a href="login.php">登录发帖</a>
        </div>
    <?php } ?>
    </div>
<script src="public/js/jquery.min.js"></script>
<script src="public/js/my-bootstrap.min.js"></script>
<script async src="public/js/module.all.js"></script>
